package com.kgc.scd.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kgc.scd.bean.ProductVO;
import com.kgc.scd.util.RequestResult;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: WangKuoKuo
 * @create: 2022-06-14 15:28
 * @description:
 **/
@FeignClient("blmall-server-wkk")
// @RequestMapping("/product")
public interface ProductServiceFeign {

    // 根据商品id查询商品
    @GetMapping("/list")
    RequestResult<ProductVO> listProduct(@RequestParam("proId") String proId);

    // 商品评论分页
    @GetMapping("/commentPage")
    RequestResult<Page> listComment(@RequestParam("commProId") String commProId,
                                    @RequestParam("pageNo") Integer pageNo,
                                    @RequestParam("pageSize") Integer pageSize,
                                    @RequestParam("orderBy") Integer orderBy,
                                    @RequestParam("commentLevel") Integer commentLevel) ;

}
